<script>
	var pnum = {$pnum};
	{if condition="(isset($filter)) AND ($filter)"}
	var filter = {$filter};
	{/if}
	{if condition="(!isset($search)) OR (!$search)"}
	var search = 0;
	var goUrl = "/{$Request.module}/brand/lst/filter/"+filter+".html?page="+pnum;
	{else/}
	var search = {$search};
	var goUrl = "/{$Request.module}/brand/search.html?page="+pnum;
	{/if}
</script>

                        <table class="table table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th style="width:30%">品牌名称</th>
                                    <th style="width:30%">logo</th>
                                    <th style="width:20%">显示/隐藏</th>
                                    <th style="width:20%">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <!--if condition="$list->isEmpty() == false"-->
							{foreach name="list" item="v"} 
                                <tr>
                                    <td>{$v.name}</td>
                                    <td><img {if condition="$v['brand_logo']"}src="{$v.brand_logo}"{else/}src="__PUBLIC__/admin/img/nopic.jpg"{/if} width="30px" height="30px"/></td>
                                    <td>
                                    {switch name="v.is_show"}
                                    {case value="0"}
                                    <button class="btn btn-danger btn-xs" type="button" onclick="changeTableVal({$v.id},'is_show',this);"><i class="fa fa-times"></i></button>
                                    {/case}
                                    {case value="1"}
                                    <button class="btn btn-primary btn-xs" type="button" onclick="changeTableVal({$v.id},'is_show',this);"><i class="fa fa-check"></i></button>
                                    {/case}
                                    {/switch}
                                    </td>
                                    <td>
                                    <button type="button" class="btn btn-primary btn-xs" onclick="editpic({$v.id},this);"><i class="fa fa-paste"></i>&nbsp;编辑</button>&nbsp;&nbsp;&nbsp;&nbsp;
                                    <button type="button" class="btn btn-danger btn-xs" onclick="delone({$v.id},this);"><i class="fa fa-close"></i>&nbsp;删除</button>
                                    </td>
                                </tr>
							{/foreach}
							<!--else/-->
							<!--<tr><td colspan="4" style="text-align:center; font-size:14px;">没有找到相关数据</td></tr>-->
							<!--/if						-->
                            </tbody>
                        </table>
                        <div class="row"><div class="pagination" style="float:right; margin-right:20px;">{$page}</div></div>